﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000C8 RID: 200
	internal class Str32String : IStringDecoder
	{
		// Token: 0x060002FF RID: 767 RVA: 0x0000BDB3 File Offset: 0x0000A1B3
		private Str32String()
		{
		}

		// Token: 0x06000300 RID: 768 RVA: 0x0000BDBC File Offset: 0x0000A1BC
		public string Read(byte[] bytes, int offset, out int readSize)
		{
			int num = (int)bytes[offset + 1] << 24 | (int)bytes[offset + 2] << 16 | (int)bytes[offset + 3] << 8 | (int)bytes[offset + 4];
			readSize = num + 5;
			return StringEncoding.UTF8.GetString(bytes, offset + 5, num);
		}

		// Token: 0x040000E5 RID: 229
		internal static readonly IStringDecoder Instance = new Str32String();
	}
}
